<template>
  <div class="skill-container" id="skill">
    <el-row>
      <h1>个<b>人技</b>能</h1>
      <p>对编程保持好奇心、目的和激情，始终如一</p>
    </el-row>
    <el-row class="echarts">
      <div id="skills" class="wow animate__animated animate__fadeInLeft" style="width: 800px; height: 600px"></div>
      <ol class="wow animate__animated animate__fadeInRight">
        <li>熟练掌握HTML、CSS、Javascript相关知识</li>
        <li>熟练掌握ES6语法</li>
        <li>熟练使用Vue进行组件化开发</li>
        <li>熟悉常用的UI框架</li>
        <li>了解echarts</li>
        <li>了解Node和MySQL技术</li>
      </ol>
    </el-row>
  </div>
</template>

<script>
import * as echarts from "echarts";
import { WOW } from "wowjs";
export default {
  mounted() {
    this.chartInit();
    new WOW().init();
  },
  methods: {
    chartInit() {
      let chartDom = document.getElementById("skills");
      let myChart = echarts.init(chartDom);
      let option;

      option = {
        legend: {
          top: "bottom",
        },
        toolbox: {
          show: true,
          feature: {
            mark: { show: true },
            // dataView: { show: true, readOnly: false },
            // restore: { show: true },
            saveAsImage: { show: true },
          },
        },
        series: [
          {
            name: "Nightingale Chart",
            type: "pie",
            radius: [50, 250],
            center: ["50%", "50%"],
            roseType: "area",
            itemStyle: {
              borderRadius: 8,
            },
            data: [
              { value: 40, name: "HTML5" },
              { value: 38, name: "CSS3" },
              { value: 32, name: "Javascript" },
              { value: 30, name: "Vue" },
              { value: 28, name: "Node" },
              { value: 26, name: "MySQL" },
            ],
          },
        ],
      };

      option && myChart.setOption(option);
    },
  },
};
</script>

<style lang="less" scoped>
.skill-container {
  text-align: center;
  h1 {
    font-size: 24px;
    font-weight: normal;
    color: #444444;
    b {
      display: inline-block;
      font-weight: normal;
      height: 40px;
      line-height: 40px;
      border-bottom: 2px solid #ffad2b;
    }
  }
  p{
    font-size: 14px;
    color: #666666;
  }
  .echarts {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    ol {
      height: 600px;
      font-size: 16px;
      li {
        line-height: 100px;
        color: #666666;
        text-align: start;
      }
    }
  }
}
</style>